export const constantRoute = [
  {
    //登录
    path: '/login',
    component: () => import('@/views/login/index.vue'),
    name: 'login', //命名路由，权限控制需要
  },
  {
    //登陆成功后展示数据的路由
    path: '/',
    component: () => import('@/views/home/index.vue'),
    name: 'home', //命名路由，权限控制需要
  },
  {
    //404
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404', //命名路由，权限控制需要
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'Any', //命名路由，权限控制需要
  },
]
